If you want to guarantee that you get into ketosis try cutting right down to a maximum of 20-25g carbs total for a couple of weeks.
But you may well be able to lose weight on your 40g carbs anyway - you'll have to try it and see as "no one size fits all". You don't have to be in ketosis to lose weight, and you may not necessarily lose weight when you're in ketosis.
Either way you should start to see an improvement in your glucose levels though.
Use Google to find one of the low carb/keto nutritional calculators which can help you find the best ratios of carbs/protein/fats for your particular situation . Basically when you've gone low enough carb to switch your body over to fat burning mode (keto/fat adapted), to lose wieght you also need to be eating somewhat less fat than you need for energy, so that you use your body fats instead of dietary ones.
Robbity