Mandy has the same number of red leaves and yellow leaves. Then she finds 1 more yellow leaf. There are 17 leaves in all. How many leaves are red? How many leaves are yellow?

r=y

r+(y+1) = 17
r=8, y=9