Sumali sa IDNStudy.com at makakuha ng mabilis at maaasahang mga sagot. Makakuha ng hakbang-hakbang na mga gabay para sa lahat ng iyong teknikal na tanong mula sa mga miyembro ng aming komunidad.

A recent survey asked students what pets they have. Based on the results, the following statements are all true:
23 students have dogs.
20 students have cats.
3 students have both dogs and cats.
5 students have no cats or dogs.

How many students were surveyed?