Olivia's age equation: X = Y - 6 and age is 2 years.
Peyton's age equation: 3Y = 24 and age is 8 years.
Explanation:
Step 1:
Let us assume that Olivia's age be X years and Peyton's age be Y years.
From the give statements we can get that
Y = X+6
3Y = 24
which means Peyton is 8 years old.
Step 2:
X = Y-6
= 8-6
= 2
and Olivia is 2 years old.