The first thing to do is determine the number of possible tickets, in this case ${59 \choose 6}=45057474$, and the number of ways of winning each of the prizes:
- Matching 3: ${6 \choose 3} \times {53 \choose 3} =20\times 23426 =468520$ (The number of ways of choosing 3 from the winning set and 3 from the loosing set.)
- Matching 4: ${6 \choose 4} \times {53 \choose 2} =15\times 1378=20670$
- Matching 5: ${6 \choose 5} \times {53 \choose 1} = 6\times 53 =318$
- Matching 6: ${6 \choose 6} \times {53 \choose 0} = 1$
The probability of winning in each of these ways is determined by dividing by ${59 \choose 6}$. (The probability of winning anything at all is approximately $0.01$.) The expected value of a single random ticket depends on what the actual prizes are. As a function of these prizes we get:
$$\frac{234260}{22528737}E_3 + \frac{3445}{7509579}E_4 + \frac{53}{7509579}E_5 + \frac{1}{45057474}E_6$$
Let's assume that the prizes are $E_3=\$5$, $E_4=\$100$, $E_5=\$10000$, $E_6=\$1000000$. Then we get an expected value of about $\$0.19$.
If you do this twice, where the two tickets are independent of each other, you simply get twice the expected value, about $\$0.38$.
Now, if the second ticket has distinct numbers in it, the first ticket proceeds the same way but for the second, we get a minor plague of cases. First, there are ${53 \choose 6}$ ways of choosing the second ticket in each of the cases. Then, there are seven cases (each with subcases) depending on how many of the winning digits were matched by the first ticket:
- The first ticket matched 0 numbers. $P={53 \choose 6}/{59 \choose 6}$
Then the second ticket could match any number of winning numbers. There are 6 unpicked winning numbers and 47 unpicked losing numbers.
Number of ways of matching 3: ${6 \choose 3}\times {47 \choose 3}$
Number of ways of matching 4: ${6 \choose 4}\times {47 \choose 2}$
Number of ways of matching 5: ${6 \choose 5}\times {47 \choose 1}$
Number of ways of matching 6: ${6 \choose 6}\times {47 \choose 0}$
- The first ticket matched 1 number. $P={6 \choose 1}{53\choose 5}/{59 \choose 6}$
Then the second ticket could match any number of winning numbers except all of them. There are 5 unpicked winning numbers and 48 unpicked losing numbers.
Number of ways of matching 3: ${5 \choose 3}\times {48 \choose 3}$
Number of ways of matching 4: ${5 \choose 4}\times {48 \choose 2}$
Number of ways of matching 5: ${5 \choose 5}\times {48 \choose 1}$
- The first ticket matched 2 numbers. $P={6 \choose 2}{53\choose 4}/{59 \choose 6}$
Then the second ticket could match up to 4 winning numbers. There are 4 unpicked winning numbers and 49 unpicked losing numbers.
Number of ways of matching 3: ${4 \choose 3}\times {49 \choose 3}$
Number of ways of matching 4: ${4 \choose 4}\times {49 \choose 2}$
- The first ticket matched 3 numbers. $P={6 \choose 3}{53\choose 3}/{59 \choose 6}$
Then the second ticket could match up to 3 winning numbers. There are 3 unpicked winning numbers and 50 unpicked losing numbers.
Note that, in this case, we have a win even if the second ticket doesn't win so this is really two cases: One where you win twice, one where you only win once.
Number of ways of matching 3: ${3 \choose 3}\times {50 \choose 3}$
- The first ticket matched 4 numbers.
- The first ticket matched 5 numbers.
- The first ticket matched 6 numbers.
The second ticket cannot win in these cases.
That's 14 cases where you win something. The expected value of playing this way is then
$P(T_1=0,T_2=3)(0+E_3)+P(T_1=0,T_2=4)(0+E_4)+P(T_1=0,T_2=5)(0+E_5)+P(T_1=0,T_2=6)(0+E_6)
+P(T_1=1,T_2=3)(0+E_3)+P(T_1=1,T_2=4)(0+E_4)+P(T_1=1,T_2=5)(0+E_5)
+P(T_1=2,T_2=3)(0+E_3)+P(T_1=2,T_2=4)(0+E_4)
+P(T_1=3,T_2=3)(E_3+E_3)+P(T_1=3,T_2<3)(E_3+0)
+P(T_1=4)E_4
+P(T_1=5)E_5
+P(T_1=6)E_6$
I made Sage do the algebra on this to find the expected value as a function of the prizes:
$$\frac{268671400163}{25860151455138}E_3 + \frac{6890}{7509579}E_4 + \frac{106}{7509579}E_5 + \frac{1}{22528737}E_6$$
This is $\frac{1573862727}{151228955878}E_3$ less than the expected value for two independent tickets. For the prize amounts I gave above, the expected value is about $\$0.33$ or about five cents less than the expected value for independent tickets.