Put One Image On Another Image While Resizing It With ImageMagick

Code
magick convert background.png foreground.png -gravity NorthWest -geometry 100x50+20+80 -composite output.png

This resizes _foreground.png__ to _100x50__ pixels and puts it on the _background.png__ image 20 pixels over and 80 pixels down from the top left.