Hey there NavidaWimalaweera,
Thanks for reaching out to the Apple Support Communities. We understand you have questions about using your printer for two-sided (duplex) printing jobs on your Mac, and we'd be happy to help.
To get started, if you're not able to select the option for two-sided printing, it's possible that the printer may not support two-sided printing on your Mac. This can be found in the following resource: Choose settings in the Print dialog on Mac - Apple Support
We'd also like to share this resource from HP's support site on steps to take when the Two-Sided setting is not available: Print on both sides of the paper with an HP printer - Apple Support
After going through steps 1 & 2 under the "Print on both sides of the paper (Mac)" section, you'll want to skip step 3 and continue with steps 4-11 from there.
If you have any other questions, we would recommend reaching out to HP's support directly who may be able to provide some additional details on this for you.
We hope that's able to help.
Have a great day!