The first one is correct. You can extend for another 3 years due to your approval I-140 petition. If your I-140 were still pending, then only 1 year for H1B extension.