We have examined a plane symmetric cosmological model in the presence of quark and strange quark matter with the help of f(R,T) theory of gravity. To find solutions for this type of space–time, we applied a power-law relationship between the scale factor and the deceleration parameter. We used a variable deceleration parameter. We applied constraints on the parameters using the R2 test and obtained the best-fit values for the Hubble parameter H(z) using 57 observed data points, achieving an R2 value of 0.9321 and an RMSE of 11.0716. The best-fit parameters were α=0.542