Target

Peter, Martin and Jirka were fire in a special target, which had only three fields with values of 12, 18 and 30 points. All boys were firing with the same number of arrows and all the arrows hit the target, and the results of every two boys differed in one point.

Peter's average score was two points better than Martin's and Martin was one point better than Jirka's average.

Find how many arrows each of the boys fired.


Correct result:

n =  6

Solution:

Peter: 30 30 30 30 30 30; AVG = 30
Martin: 30 30 30 30 30 18; AVG = 28
Jirka: 30 30 30 30 30 12; AVG = 27

Program in PHP:
$x = array(12,18,30);
$ch = array();
for($n=1;$n<1000;$n++)
{
    foreach($x AS $xx)
    {
        $ch[0][$n] = $xx;

        foreach($x AS $yy)
        {
            $ch[1][$n] = $yy;
            foreach($x AS $zz)
            {
                $ch[2][$n] = $zz;

                $s0 = array_sum($ch[0]);
                $s1 = array_sum($ch[1]);
                $s2 = array_sum($ch[2]);

                if($s0/$n != 2+$s1/$n || $s1/$n != 1 + $s2/$n)
                {
                    continue;
                }

                echo($n);
                print_r($ch);

            }
         }
    }

}




We would be pleased if you find an error in the word problem, spelling mistakes, or inaccuracies and send it to us. Thank you!






Showing 0 comments:
avatar




Tips to related online calculators
Looking for help with calculating arithmetic mean?
Looking for a statistical calculator?
Do you have a linear equation or system of equations and looking for its solution? Or do you have quadratic equation?

You need to know the following knowledge to solve this word math problem:


 
We encourage you to watch this tutorial video on this math problem: video1

Next similar math problems:

  • Pool
    pool If water flows into the pool by two inlets, fill the whole for 19 hours. The first inlet filled pool 5 hour longer than the second. How long pool take to fill with two inlets separately?
  • Three friends
    penize_49 Cuba, Matthew and their friend Adam found a brigade during their weekend weekends because they wanted to make a joint trip to the Alps that they planned for the spring break. Cuba enjoyed the skiing trip very much, so he was not lazy to get up and went to
  • Chickens and rabbits
    pipky In the yard were chickens and rabbits. Together they had 27 heads and 86 legs. How many chickens and how many rabbits were in the yard?
  • Average age
    age_4 The average age of all people at the celebration was equal to the number of people present. After the departure of one person who was 29 years old, average age was again equal to the number present. How many people were originally to celebrate?
  • TV competition
    test_1 In the competition, 10 contestants answer five questions, one question per round. Anyone who answers correctly will receive as many points as the number of competitors answered incorrectly in that round. One of the contestants after the contest said: We g
  • Password
    codes The voltage station is every day changing the master password, which consists of three letters. Code generation process does not change and is based on the following procedure: The following letters (A) to (I) correspond to different numbers from 1 to 9.
  • Quarantine cupcakes
    cake Mr. Honse was baking quarantine cupcakes. Mrs. Carr made twice as many as Mr. Honse. Ms. Sanchez made 12 cupcakes more than Mr. Honse. If they put all their cupcakes together (which they can’t because. .. quarantine!) they would have 108 cupcakes. How may
  • Sugar - cuboid
    kocky_cukor Pejko received from his master cuboid composed of identical sugar cubes with count between 1000 and 2000. The Pejko eat sugar cubes in layers. The first day eat one layer from the front, second day one layer from right, the third day one layer above. Yet
  • The Hotel
    hotel-montfort-tatry-2_2 The Holiday Hotel has the same number of rooms on each floor. Rooms are numbered with natural numbers sequentially from the first floor, no number is omitted, and each room has a different number. Three tourists arrived at the hotel. The first one was in
  • Young mathematician
    age_1 One young mathematician was bored again. He found that the average age of people in the room where the seminar is equal to its count. Then his 29-year-old brother entered this room. Even then, the average age of all present was the same as the count of pe
  • Average monthly salary
    penize A total of 10 teachers work at one small school in Moravia. The monthly salary of each is 21,500 CZK or 21,800 CZK or 22,500 CZK according to their education and age. The average monthly salary for this school's teacher is 21 850 CZK. How many teachers of
  • Z9–I–4 MO 2017
    vlak2 Numbers 1, 2, 3, 4, 5, 6, 7, 8 and 9 were prepared for a train journey with three wagons. They wanted to sit out so that three numbers were seated in each carriage and the largest of each of the three was equal to the sum of the remaining two. The conduct
  • Red and white
    tulipany Simona picked 63 tulips in the garden and tied bicolor bouquets for her girlfriends. The tulips were only red and white. She put as many tulips in each bouquet, three of which were always red. How much could Simon tear off white tulips? Write all the opti
  • Team
    football The football team has 11 players. Their average age is 20 years. During the match due to injury, one player withdraws and the average age of the team is 18. How old was injured player?
  • Grandfather
    family_16 The grandfather is three years older than an grandmother. The average age of the grandmother, the grandfather and their seven grandchildren is 28 years. The grandchildren have a total of 105 years. Calculate how old is grandfather.
  • Highway tunnel
    tunnel_1 The highway tunnel was built from two ends in the north-south direction. The average daily performance of the "northern party" rasters was higher than the average daily power of the "southern party" of the rasters. After 55 business days, both parties met
  • Football league
    football_1 In the 2nd football league plays each of the 16 participants with each opponent twice. For every victory gets 3 points, 1 point for a draw, a defeat none. After the competition was team with 54 points and 12 defeats at 9th place. How many times have won?