You can display the data you want by joining two tables and specifying the desired product IDs. The following expression provides this.
SELECT c.* FROM Customers AS c LEFT JOIN Sales s ON s.CustId = c.Id WHERE s.ProdId IN (22,36);