Exact analysis of a lattice gas on the 3–12 lattice with two- and three-site interactions