Most HP Pavilion laptops feature a single 3.5 mm combination headphone/line-out jack (TRRS—tip/ring/ring/sleeve, supporting stereo out + mic in). A Y-connector with one male TRRS plug and two female jacks will physically fit, but functionality depends on wiring:
Better alternative: Use a 3.5 mm male-to-RCA stereo cable directly from the laptop's headphone jack to the stereo's RCA (red/white) inputs. No splitter needed; clean signal, full stereo, no impedance mismatch.
If you need simultaneous headphone monitoring and stereo output, a small USB audio interface (e.g., Focusrite Scarlett Solo, Behringer UMC22) provides dedicated line outs and headphone amp—far superior to a passive splitter.