We determined that f(y1, y2) = 6(1 − y2), 0 ≤ y1 ≤ y2 ≤ 1, 0, elsewhere is a valid joint probability density function. (a) Find
E(Y1|Y2 = y2). E(Y1|Y2 = y2) = (b) Use the answer derived in part (a) to find E(Y1). (Compare this with E(Y1) found using the marginal density function f1(y1) = 3(1 − y1)2.) E(Y1) =
45 divided by 3 gives you 15 which is the amount of money he spent on the gas and 45 divided by 5 is 9 which is the amount of money he spent on the flowers which means he spent $24 so he has $21 left for the big date.