At a local grocery store, each apple cost $1.89 and each orange cost $2.59. A total of 35 apples and oranges were purchased for a total of $79.95. Let x= number of apples and y=number of oranges. Write a system of linear equations that model the given information. Solve the system to determine the number of apples and oranges that were purchased.