In this study, we have investigated the higher dimensional flat Friedmann-Robertson-Walker (FRW) universe for a cloud of string with perfect fluid attached quark and strange quark matter (SQM) in Lyra geometry. Generalized (n + 2) dimensional flat FRW universe solutions have been achieved with the aid of equation of states (EOS) and deceleration parameter (q). From the field equations, we have obtained that the cloud of string with perfect fluid does not survive. Since the string tension density vanishes (lambda = 0) for this model, as a result, the cloud of string with perfect-fluid-attached quark and strange quark matter energy-momentum tensor is automatically transformed into a perfect-fluid-attached quark and strange quark matter energy-momentum tensor. Also, our solutions agree with Halford's study. beta(2) behaves like a cosmological constant. When t -> infinity the pressure of quark matter and the density go to zero, then, the quark matter transforms into another matter with time. Also our quark matter solutions are in agreement with the present idea.