Use two real life quantities and construct a function that shows a relationship between the the two quantities. The function should be a piecewise function.

Let's consider the relationship between the number of hours worked and the amount of money earned.

Let the function be represented as follows:

f(x) =
- $10 per hour for the first 40 hours worked
- $15 per hour for any hours worked over 40

In mathematical terms, the function can be written as:

f(x) =
- 10x when x ≤ 40
- 400 + 15(x-40) when x > 40

Here, x represents the number of hours worked, and f(x) represents the amount of money earned.

Double check "400 + 15(x-40) when x > 40"

I apologize for the error. The correct piecewise function should be:

f(x) =
- $10x for 0 ≤ x ≤ 40
- $10(40) + $15(x-40) for x > 40

In this corrected function, x represents the number of hours worked, and f(x) represents the amount of money earned.