Answer:
They got 14 books at $22 and 21 books at $34.
Explanation:
From the information given, you can write the following expressions:
x+y=35 (1)
22x+34y=1022 (2), where:
x is the number of books that cost $22
y is the number of books that cost $34
First, you can solve for x in (1):
x=35-y (3)
Then, you can replace (3) in (2) and solve for y:
22(35-y)+34y=1022
770-22y+34y=1022
12y=1022-770
12y=252
y=252/12
y=21
Finally, you can replace the value of y in (3) to find x:
x=35-y
x=35-21
x=14
According to this, the answer is that they got 14 books at $22 and 21 books at $34.