help with sas hw

#1
You are a big professional basketball fan, so you are excited when a friend gives you data sets of NBA information from the 2017-2018 season. One data set, named NBA_team, contains data of regular season on each team. The other data set, named NBA_PLAYER, contains information of individual players in the first round of 2018 NBA playoff games.
Variables in the NBA_TEAM data set:
Team Team name abbreviation
Team_FULL Full name of team
W Number of wins by the team in the 2017-2018 season
L Number of losses by the team in the 2017-2018 season
Conference Team conference (E for Eastern, W for Western)
Variables in the NBA_PLAYER data set: Player Player name
Team Team name abbreviation
AGE Player’s age
GP Number of playoff games in which the player played
W Number of wins in the playoff
L Number of losses in the playoff
MIN Average number of minutes per playoff game played
PTS Average points per playoff game
FGM Average number of field goals made per playoff game
FGA Average number of field goals attempted per playoff game
FG3M Average number of 3 points field goals made per playoff game
FG3A Average number of 3 points field goals attempted per playoff game
FTM Average number of free throw made per playoff game
FTA Average number of free throw attempted per playoff game
REB Average number of rebound per playoff game
AST Average number of assist per playoff game
Plus_Minus Average point differential for the team when the player is on the court. The difference in the points scored for and the points scored against.
Define a SAS library name referred to the directory where the datasets for the final are saved and create a SAS temporary dataset named “Team” from the data set NBA_Team. (18 points)
Calculate the average wins in the 2017-18 season by the conference (use PROC Means). Which conference has the better average?
Calculate the team winning percentage (PCT_TEAM) based on the W and L. Then rank the teams based on their team winning % (PCT_TEAM). You will need to add a new variable “Rank” in the dataset “Team” which indicates the ranking of teams. The team with highest winning % is ranked 1st while the worst is ranked 30th. There are several ways to do this. You are required to use the RETAIN statement to create the variable “Rank”. For teams with ties, just take rank based on the order how the teams are sorted by PCT_TEAM. Calculate the average of rank by conference. Which conference has the better rank?
NBA playoff usually consists of top 8 teams from each conference (16 teams total). Instead of selecting top 8 teams from each conference, if we decided to select the best 16 teams for the playoff regardless the conference, what would be the number and percentage of teams from the East and the West in the playoff? Use PROC FREQ to generate the numbers.
Based on the results from the 1.a.1-1.a.3, which conference do you think is stronger this year?



if someone can help me write this code, or start it I will be thankful!