Ratio scaling
Both gauges are reduced to one unit (stitches per 4 in or per 10 cm), then each pattern count is multiplied by your gauge divided by the pattern gauge. Stitch counts scale the width, row counts scale the height, and the two are computed independently. The result is a proportional count, usually a decimal, that you round in the direction that suits the pattern's repeats and shaping.