Step-by-step explanation:
In Kate's equation, 20 is the total number of tickets, 4 is number of tickets per ride, r is number of rides already ridden, and 4r is the number of tickets used
in Brian's equation, 5 is total number of rides Katie can ride and 5 - r is the number of rides left to ride