We start by assigning variables to represent their ages
Let Lisa's age be represented by l and Patrick's age be represented by p
First part of the question states that the sum of their ages is 38
Mathematically;
The difference of their ages is 8, and since Patrick is older, we have the equation as;
Now substitute equation ii into i; we have