The distance formula is d = (x^2 + y^2)^(1/2) This is the same equation used for both. In other words, the equation of a circle gives the radius of the circle in terms of x and y, while the distance formula gives the distance from the origin to the final point in terms of x a
Cost of 6 sweets = 24p
so, cost of 1 sweet = 24p/6 = 4p
Now, cost of 5 sweets will be =4p*5 = 20p