We consider an uncharged anisotropic stellar model with two distinct equations of state in general relativity. The core layer has a quark matter distribution with a linear equation of state. The envelope layer has a matter distribution which is quadratic. The interfaces between the core, envelope and the vacuum exterior regions are smoothly matched. We find radii, masses and compactifications for five different compact objects which are consistent with other investigations. In particular, the properties of the pulsar object PSR J1614-2230 are studied. The metric functions and the matter distribution are regular throughout the star. In particular, it is shown that the radii associated with the core and the envelope can change for different parameter values.