from typing import List


def findMedianArrays(nums1: List[int], nums2: List[int]) -> float:
    """Receives two arrays of ints and returns the median of the merged arrays after sorting."""
    nums1.extend(nums2)
    nums1.sort()
    if len(nums1) % 2 == 0:
        return (nums1[len(nums1)//2 - 1] + nums1[len(nums1)//2])/2
    else:
        return nums1[len(nums1)//2]