Explanation:
the price of one orange is indeed 3/6 = 1/2 = $0.50.
the equation residential the price for any number of oranges contains then a variable, say x, to stand for the number of purchased oranges :
p(x) = 0.5x
meaning that the price of x oranges is 0.5×x.