Ina book fair , all magazines are sold at X% discount , while all books are sold at y % discount.Jonathan paid $151 for a book and a magazine with marked prices $150 and $20 respectively .Jill paid $318 for a book and a magazine with marked prices $300 and $60 respectively .Find the values of x and y .