AP BIO chi squared question-help

<p>In a certain species of flowering plant, the purple allele P is dominant to the yellow allele p. A student performed a cross between a purple-flowered plant and a yellow-flowered plant. When planted, the 146 seeds that were produced from the cross matured into 87 plants with purple flowers and 59 plants with yellow flowers. Calculate the chi-squared value for the null hypothesis that the purple-flowered parent was heterozygous for the flower-color gene. Give your answer to the nearest tenth</p>

<hr>

<p>shouldnt the expected be 3/4s the 146 since p is dominant to yellow? if so my chi squared value would be 18.5 but thats wrong?</p>

<p>can someone help</p>

<p>The answer should be around 5.3-5.4 right? I got 5.37</p>