2 Methods:
(1st Method) Test a Few Y= Whole Number Mile cases to see how many (X/5) Charges need to be applied
case 1: Y = 4
1st --- there are 16 Total (1/4th) Increments in Y = 4 Miles
2nd ---- we need to take away just ONE of these 16 increments ----- 15 Increments will be charged on top of the Flat Fee
Total No. of (1/4th) Miles Charged at (X/5) cents -----> 4 * (Y = 4 miles) - 1 = 15
case 2: Y = 6
1st ----- there are 24 Total (1/4th) Increments in Y = 6 miles
2nd----- we need to take ONE of these 24 Increments away because a Flat Fee is charged for the FIRST --- 23 Increments will be charged in excess of the Flat Fee
Total No. of (1/4th) Mile Increments charged at (X/5) Cents = 4 * (Y = 6) - 1 = 23
Thus, the Total Charge is:
X cent for the FIRST (1/4th) Mile
+
(X/5) cents for Each 1/4th Miles Increment beyond that which, since Y = a Whole Number, is measured by: (4Y - 1)
Total Charge = (X) + (X/5) * (4Y - 1) =
(5X)/(5) + (4XY - X)/(5) =
(4X + 4YX)/(5)
-B-
Method 2:
Set up the Algebraic Equation at the outset:
X cents is charged for the FIRST (1/4th) Mile
How many (1/4th) Mile Increments are remaining if the Total Miles = Y = Whole Number?
[(Y - (1/4) ]
____________
(1/4)
=
[ (4Y - 1) / (4) ] / [ (1) / (4) ]
=
4Y - 1 = No of (1/4th) Mile Increments charged at X/5 Cents per
Total Charge = X + (X/5) * (4Y - 1) ------> Solve as above