I need to buy a bicycle for my first son.' // the sum of the marks is the highest in the first diary.
'I need to buy a bicycle for my second son.' // the sum of the marks is the highest in the second diary.
'I need to buy a bicycle for my third son.' // the sum of the marks is the highest in the third diary.,
{
'algebra': 6,
'history': 8,
'physics': 9,
'geography': 2,
'chemistry': 9
}
Через час я написал свой вариант.