Mr and Mrs Šťastní inherited 16 500 EUR from rich grandmother. They divided the heritage into two equal sums
and invest them during one year into two term deposits. Using the table find out if Mr and Mrs Šťastní did decide right 
(concerning profitability). If not, propose better solution for them.

Term deposit for 1 year:
to 1 499 EUR -  1,7 %
from 1 500 EUR to 2 999 EUR - 2,0 %
from 3 000 EUR to 9 999 EUR - 2,2 %
from 10 000 EUR to 14 999 EUR - 2,4 %
from 15 000 EUR to 29 999 EUR - 2,7 %
from 30 000 EUR - 3,2 %

interest1 = 0 (slider from 0 to 4, step 0.1)
MrStastny = 0 (slider from 0 to 16500, step 50)
MrsStastna = 0 (slider from 0 to 16500, step 50)
interest2 = 0 (slider from 0 to 4, step 0.1)
a: y = MrStastny + MrStastny interest1 / 100 * 0.81 + MrsStastna + MrsStastna interest2 / 100 * 0.81
A = Point(a)
B = Point(a)
b = OrthogonalLine(B, a)
c = OrthogonalLine(A, a)
C = Intersect(c, xAxis)
D = Intersect(b, xAxis)
poly1, a_1, b_1, d, c_1 = Polygon(A, B, D, C)
Sum = Intersect(a, yAxis)
e = Segment(Sum, B)
text1: "Sum:  " + a