Answer:
See below.
Explanation:
Part 1:
People who were invited and didn't come:
= 25% of 40
Key: "of" means "to multiply", % means out of 100.
![\displaystyle =(25)/(100) * 40\\\\= (25 * 4)/(10) \\\\=(100)/(10) \\\\= 10](https://img.qammunity.org/2023/formulas/mathematics/college/vb95sue9dihmpbdc3ypm6vn8vul5wc60ti.png)
So,
People who came = 40 - 10
= 30 people
Part 2:
People who were invited but didn't come:
= 20% of 40
![\displaystyle =(20)/(100) * 40\\\\= (1)/(5) * 40\\\\= 1 * 8\\\\= 8](https://img.qammunity.org/2023/formulas/mathematics/college/ps46qddb4662egludpo0zdljoms3h7pjue.png)
So,
People who came = 40 - 8
= 32 people
![\rule[225]{225}{2}](https://img.qammunity.org/2023/formulas/english/college/eq413d752mwtrwwenrzwldxt4w1olmf1b3.png)