Cannot resize partition Mac Os
To add the space from the deleted container to the existing container, the deleted container would at least have to physically reside after the existing container. In your case, this probably was not true. You can confirm this by viewing the output from the command given below.
diskutil info disk0s3 | grep -e Size -e Offset

Here, I assume the existing container has disk0s3 as the identifier for the physical partition. If you restart your Mac, this will probably change to disk0s2. The offset should show the partition starts at around 151 GB. If so, then all the free space you created resides before the container and therefore can not be added to the container.
Apple's intent by creating APFS was for a computer to have only one APFS container. You can create additional volumes within a container and install more than one macOS operating system. If you had done this, then deleting the APFS volume(s) would have automatically made the free space available for other volumes.