In this study, we research a higher dimensional flat Friedmann-Robertson-Walker (FRW) universe in Barber's second theory when strange quark matter (SQM) and normal matter (NM) are attached to the string cloud and domain walls. We obtain zero string tension density for this model. We obtain dust quark matter solutions. This result agrees with Kiran and Reddy, Krori et al, Sahoo and Mishra and Reddy. In our solutions the quark matter transforms to other particles over time. We also obtain two different solutions for domain walls with quark and normal matters by using a deceleration parameter. Also, the features of the obtained solutions are discussed and some physical and kinematical quantities are generalized and discussed. Our results are consistent with Yilmaz, Adcox et al and Back et al in four and five dimensions.