To calculate the total profit, we need to subtract the total cost from the total earnings.
Total cost = $14/cake * x cakes
Total earnings = $50/cake * x cakes
Total profit = Total earnings - Total cost
Given that x ≤ 714r, we can substitute the value of x into the equation:
Total profit = $50/cake * (714r) - $14/cake * (714r)
Total profit = $35700r - $9996r
Total profit = $25704r
Since we don't have the value of r, we can't calculate the exact total profit.