Find the measure of x and y ?

Answer:
x = 28
y = 47
Step-by-step explanation:
40 + 5x = 180 since it forms a straight line
5x = 180-40
5x = 140
Divide by 5
5x/5 = 140/5
x =28
3y-1 = 5x since they are alternate exterior angles
3y-1 = 140
Add 1
3y = 141
3y/3 = 141/3
y = 47