Starting the play, a matrix is done with optimized combinations.
The combinations (16):
01 12 33 36 41 49…19 24 26 27 31 39…06 12 18 20 36 49…03 05 11 17 47 49
04 07 10 27 38 42…26 27 29 36 39 47…05 26 28 29 31 33…03 08 21 28 34 39
11 13 26 27 37 44…03 10 20 23 29 42…14 16 18 21 39 45…01 06 25 33 34 48
08 09 15 17 24 47…02 05 12 32 35 38…04 19 22 36 43 49…07 28 30 31 40 46
The final total price is $16.
Babar 
The combinations (16):
01 12 33 36 41 49…19 24 26 27 31 39…06 12 18 20 36 49…03 05 11 17 47 49
04 07 10 27 38 42…26 27 29 36 39 47…05 26 28 29 31 33…03 08 21 28 34 39
11 13 26 27 37 44…03 10 20 23 29 42…14 16 18 21 39 45…01 06 25 33 34 48
08 09 15 17 24 47…02 05 12 32 35 38…04 19 22 36 43 49…07 28 30 31 40 46
The final total price is $16.
Babar 
