The aim of this study is to investigate how heat and mass transfer impacts the unsteady incompressible flow of Maxwell fluid. An infinite vertical plate with ramped and isothermal wall temperature and concentration boundary conditions is considered with the Maxwell fluid. Furthermore, in this study, engine oil has been taken as a base fluid due to its enormous applications in modern science and technologies. To see the importance of nanofluids, we have suspended molybdenum disulfide in engine oil base fluid to enhance its heat transfer rate. To investigate the flow regime, the system of equations was derived in the form of partial differential equations. The exact solutions to the complex system are obtained using the Laplace transform technique. Graphically, the impact of different embedded parameters on velocity, temperature, and concentration distributions has been shown. Through using the graphical analysis, we were interested in comparing the velocity, temperature, and concentration profiles for ramped and isothermal wall temperature and concentration. The magnitude of velocity, temperature, and concentration distributions is greater for an isothermal wall and less for a ramped wall, according to our observations. We observed that adding molybdenum disulfide nanoparticles to the engine oil increased the heat transfer up to 12.899%. Finally, the corresponding skin friction, Nusselt number, and Sherwood number have been calculated and presented in a tabular form.