we know that
A relationship between two variables, x, and y, represent a direct variation if it can be expressed in the form
or

In this problem
Jorge bought
apples for

This is a direct variation problem
Let
x-----> the number of apples purchased
y-----> the total cost

The value of k is equal to the value of the slope m
Substitute


The linear equation is

using a graphing tool
see the attached figure
The answer in the attached figure