Federal sentencing guidelines are very complicated. You start with a Base Offense level for the crime alleged. A gun charge can start at 16, 20 or 24 depending on the facts and your prior record. Trafficking in marijuana depends on the amount of marijuana.
You should definitely contact a lawyer to help you in federal court.