The first thing you should do before writing the compound inequation is to know what Amaya's grade point average is.
The average grade for the three exams is:
(48 + 61 + x) / 3
Then, she wants to get a D in the course, then we have two inequations:
(48+61+x)/3 >=60
(48 + 61 + x) / 3 <= 69
The compound inequation is:
60 <= (48 + 61 + x) / 3 <= 69
Solving the compound inequation:
(48 + 61 + x) / 3> = 60
(48 + 61 + x) / 3 = 60
(48 + 61 + x) = 180
x = 180 - 48 - 61 = 71
On the other hand,
(48 + 61 + x) / 3 <= 69
(48 + 61 + x) / 3 = 69
x = 207 - 48 - 61 = 98
answer
60 <= (48 + 61 + x) / 3 <= 69
the range of scores Amaya you have to earn to get to D in Algebra is
[71 - 98]