If you are an immediate relative, you can apply for a
green card through the U.S. resident. Depending on what country you are from, this may take from a few to 20+ years. This process will take
A LOT shorter time if the resident becomes a U.S. citizen first. That process will take on average 9 months if the resident is eligible to apply for U.S. citizen.