hey all trying to get around subnetting this one is from trancender
Your company uses the Class C network address 192.168.50.0/24. You are required to assign network addresses so that Los Angeles can support 99 hosts, Denver can support 43 hosts, Phoenix can support 17 hosts and Seattle can support 7 hosts. All of your routers support classless interdomain routing (CIDR), variable-length subnet masks (VLSMs) and the use of subnets that contain all 0s and all 1s.
LA needs 99 host so it needs 7bits 10000000 (i use 99+1 then convert to bin)
so i get 192.168.50.128/25
Denver needs 43 host so 6bits 11000000
192.168.50.192/26
Phoenix needs 17 host so 8bits 11100000
192.168.50.224/27
Seattle needs 7 host so 4bits 11110000
192.168.50.240/28
i get my end Subnet Mask by 128+64+32+16+8+4+2+1
so LA 10000000 = 128
Denver 11000000 = 192 etc:
Though i am wrong can someone enlighten me on what im doing wrong. Thanks

Should add their answers
LA = 192.168.50.0/25
D = .168/26
P = .192/27
S = .224/28