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.


n =  6


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();
    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)




Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):

Showing 0 comments:
1st comment
Be the first to comment!

To solve this example are needed these knowledge from mathematics:

Do you have a system of equations and looking for calculator system of linear equations? Looking for a statistical calculator? Looking for help with calculating arithmetic mean?

Next similar examples:

  1. Nuts
    orechy Peter has 49 nuts. Walnuts have 3 more than hazelnuts and hazelnut 2 over almonds. Determine the number of wallnuts, almonds and hazelnuts.
  2. 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?
  3. Supermarket 2
    pie_3 A supermarket had a buko pie sale. In the morning 2/3 of the pies were sold and in the afternoon 1/6 of the pies were sold. If 150 pies were left, how many pies had been sold? Show your solution.
  4. Square into three rectangles
    stvorcove-cisla_1 Divide the square with a side length of 12 cm into three rectangles with have the same circumference so that these circumferences are as small as possible.
  5. Sweater
    colours_3 Dana confuses sweater and wool has a choice of seven colors. In how many ways she can choose from three colors to the sleeves?
  6. House numbering
    byty_1 The residential house has three entrances numbered even numbers, successive immediately behind. The sum of the two numbers on the outside entrances is 68. Calculate the middle of these three numbers.
  7. Digit sum
    cisla_7 How many are three-digit numbers that have a digit sum of 6?
  8. 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.
  9. 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?
  10. Enterprise and wages
    workers_3 The enterprise operates a total 162 workers and their average salary is M dollars. If the company has hire an additional 18 employees whose average wage would be the S dollars, would reduce the overall average salary in the company of 3.6%. Calculate the
  11. A clock
    clocks2_19 A clock was set right at 6:00 AM. If it gains 3 1/2 minutes per hour, what time will it show at 6:00 PM on the same day? Show your solution
  12. Solve 2
    numbers2_47 Solve integer equation: a +b+c =30 a, b, c = can be odd natural number from this set (1,3,5,7,9,11,13,15)
  13. Peaches
    broskve There are 20 peaches in the pocket. 3 peaches are rotten. What is the probability that one of the randomly picked two peaches will be just one rotten?
  14. Last digit
    olympics_3 What is the last number of 2016 power of 2017
  15. Average age
    candles_1 The company of five people has an average age of 46 years. The average age of the first four is 43 years. How many years has the fifth member of this company?
  16. Dinning room
    cukriky_14 How many different combinations can we choose if there are 3 soups, 5 kinds of main dish and 2 desserts in the dining room?
  17. Report card
    vysvedcenie_1 Ivor hit 5× grade 5 at the beginning of the school year. How many times must now catch grade 1 to get grade 2 on report card?