Hi Salma,
First question—add up total of all democrats, regardless of their opinion, and divide by total sample size 651:
P=(12 + 87 +137)/651= 0.363
Second Question—add up total of same column and divide by 651:
P=(104 + 87 +90)/651=0.432
Third Question—first add up total democrats.
Dems.=12 + 87 + 137= 236
Then look in the table for cell with “democrats” and “same.” This is 87. Now:
P=87/236=0.369
Fourth Question—same procedure in reverse. First add up total same respondents in column:
Same=104 + 87 + 90= 281
Then do the same as above—look for value in same and democrat cell; this is 87, so:
P=87/281=0.310
Final Question—We already found the cell for “same” and “democrats”. Again, that value is 87. Now, we are asked about the probability among ALL SURVEY RESPONDENTS that it is a democrat who believes the economy is the same, so that is:
P=87/651=0.134
I hope this helps.